package com.pc.service.impl;

import com.pc.enrty.Food;
import com.pc.mapper.FoodMapper;
import com.pc.service.FoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class FoodServiceImpl implements FoodService {
    @Autowired
    private FoodMapper foodMapper;
    @Override
    public ArrayList<Food> findByIdCidAndName(Food food) {
        return foodMapper.selectByIdCidAndName(food);
    }
}
